//
//  HWConsumeModel.m
//  嗨文
//
//  Created by 响当当 on 4/24/19.
//  Copyright © 2019 dongzheng. All rights reserved.
//

#import "HWConsumeModel.h"

@implementation HWConsumeModel
- (id)initWithDic:(NSDictionary *)dic
{
    if (self = [super init])
    {
        self.bookCoin = [[NSString stringWithFormat:@"%@",dic[@"bookCoin"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"bookCoin"]] :@"";
        self.consumTime = [[NSString stringWithFormat:@"%@",dic[@"consumTime"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"consumTime"]] :@"";
        self.note = IFNULL(dic[@"note"], @"");
        self.consumeId = [[NSString stringWithFormat:@"%@",dic[@"consumeId"]] isValidString] ? [NSString stringWithFormat:@"%@",dic[@"consumeId"]] :@"";
    }
    return self;
}
@end
